package com.jhy.study2;


import com.jhy.study2.enumt.Color;

/**
 * @author: robert
 * @description: 枚举练习
 * @date: 2021/8/22 17:18
 * @return
 */
public class EnumTestor {
    public static void main(String[] args) {
        String red = Color.RED.getName();
        System.out.println(red);
        System.out.println("====================================");
        for(Color c : Color.values()){
            System.out.println(c + " - " + c.getName() + " - " + c.getIndex());
        }



    }
}
